<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
    <title>元素消失</title>
</head>
<body>
<div>这是文字1</div>
<div style="display: none">这是文字2</div>
<div style="visibility: hidden">这是文字3</div>
<div>这是文字4</div>
</body>
</html>